/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.yunhoo.contract.model;

import java.math.BigDecimal;

/**
 * 合同统计
 *
 * @author Administrator
 */
public class ContractStats {

    private MainInformation mainInfo = new MainInformation();
    //
    private BigDecimal planTotal;//计划总金额
    private BigDecimal execTotal;//执行总金额
    private BigDecimal payTotal;//付款总金额;

    public Object[] toArray() {
        Object[] arr = {
            mainInfo.getNumber(),
            mainInfo.getCname(),
            mainInfo.getContractTypeName(),
            mainInfo.getAddress(),
            mainInfo.getOrderdate(),
            mainInfo.getStart(),
            mainInfo.getDeadline(),
            mainInfo.getWarranty(),
            mainInfo.getNameA(),
            mainInfo.getNameAstand(),
            mainInfo.getNameB(),
            mainInfo.getNameBstand(),
            mainInfo.getTarget(),
            mainInfo.getQuality_margin(),
            mainInfo.getPenalty(),
            planTotal,
            execTotal,
            payTotal,
            mainInfo.getOther()
        };
        return arr;
    }

    public MainInformation getMainInfo() {
        return mainInfo;
    }

    public void setMainInfo(MainInformation mainInfo) {
        this.mainInfo = mainInfo;
    }

    public BigDecimal getPlanTotal() {
        return planTotal;
    }

    public void setPlanTotal(BigDecimal planTotal) {
        this.planTotal = planTotal;
    }

    public BigDecimal getExecTotal() {
        return execTotal;
    }

    public void setExecTotal(BigDecimal execTotal) {
        this.execTotal = execTotal;
    }

    public BigDecimal getPayTotal() {
        return payTotal;
    }

    public void setPayTotal(BigDecimal payTotal) {
        this.payTotal = payTotal;
    }
}
